package com.system.data.dao;

import com.system.data.model.NonewProductsInfo;
import com.system.data.model.ZcfgArticle;
import com.system.data.model.Zcfg_info;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ZcfgDao {
    @Select("SELECT * FROM `zcfg` LIMIT 25;")
    List<Zcfg_info> findZcfgInfo();

    @Select("SELECT content FROM `zcfg` WHERE title=#{title};")
    List<ZcfgArticle> findZcfgArticle(@Param("title") String title);
}
